/**
 * @description 订单
 */
import style from './styles/App.less';
import classnames from "classnames";
import React from 'react';
import EntryBase from "../Common/EntryBase";
const Fragment = React.Fragment;
import loadable from "commons/loadable";
import RouterNotMatch from "components/RouterNotMatch";
import { HashRouter, Route, Switch, Redirect } from 'react-router-dom';

export class App extends EntryBase {
    constructor(props) {
        super(props);
        this.state = {

        }
    }
    render() {
        return (
            <HashRouter>
                <Switch>
                    <Route path="/List/:type" component={loadable(() => import("./List"))} />
                    <Route path="/Favorite" component={loadable(() => import("./Favorite"))} />
                    <Route path="/Disputes/:orderNo" component={loadable(() => import("./Disputes"))} />
                    <Route path="/DealDisputes/:orderNo" component={loadable(() => import("./DealDisputes"))} />
                    <Route path="/Detail/:orderNo" component={loadable(() => import("./Detail"))} />
                    <Route path="/AfterSale/:orderNo" component={loadable(() => import("./AfterSale"))} />
                    <Route path="*" component={RouterNotMatch} />
                </Switch>
            </HashRouter>
        )
    }
}

export default App;